package com.dongdongshop.service.imp;

import com.dongdongshop.mapper.TbUserScoreAccountMapper;
import com.dongdongshop.pojo.TbUserScoreAccount;
import com.dongdongshop.pojo.TbUserScoreAccountExample;
import com.dongdongshop.service.UserScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@com.alibaba.dubbo.config.annotation.Service
public class UserScoreServiceImp implements UserScoreService {
    @Autowired
    private TbUserScoreAccountMapper tbUserScoreAccountMapper;
    @Override
    public TbUserScoreAccount selectByUserid(String userId) {
        TbUserScoreAccount tbUserScoreAccount = tbUserScoreAccountMapper.selectByUserid(userId);
        return tbUserScoreAccount;
    }

    @Override
    public void insertInfo(TbUserScoreAccount tbUserScoreAccount) {
        tbUserScoreAccountMapper.insertSelective(tbUserScoreAccount);
    }

    @Override
    public void updateByUserid(TbUserScoreAccount tbUserScoreAccount) {
        tbUserScoreAccountMapper.updateByUserid(tbUserScoreAccount);
    }
}
